import '@ant-design/v5-patch-for-react-19'
import './globals.css'
import AntdStyleRegistry from '@/components/antd-style-registry'
import LayoutContent from './layout-content'

// 根布局 - 包含全局样式和布局组件  只能为服务器组件
export default function RootLayout({
  children,
  modal,
}: Readonly<{
  children: React.ReactNode
  modal: React.ReactNode
}>) {
  return (
    <html lang="zh-CN">
      <body className="overflow-y-scroll">
        <AntdStyleRegistry>
          <LayoutContent children={children} modal={modal} />
        </AntdStyleRegistry>
      </body>
    </html>
  )
}
